package com.fas.system.service;

import com.fas.common.core.domain.AjaxResult;
import com.fas.system.domain.FasBuilding;
import com.fas.system.domain.FasFacilities;
import com.fas.system.domain.vo.FacilityDataItemVo;

import java.util.List;

/**
 * 设施信息Service接口
 *
 * @author ruoyi
 * @date 2022-05-05
 */
public interface IFasFacilitiesService
{
    /**
     * 查询设施信息
     *
     * @param id 设施信息主键
     * @return 设施信息
     */
    public FasFacilities selectFasFacilitiesById(Long id);

    /**
     * 查询设施信息列表
     *
     * @param fasFacilities 设施信息
     * @return 设施信息集合
     */
    public List<FasFacilities> selectFasFacilitiesList(FasFacilities fasFacilities);

    /**
     * 新增设施信息
     *
     * @param fasFacilities 设施信息
     * @return 结果
     */
    public AjaxResult insertFasFacilities(FasFacilities fasFacilities);

    /**
     * 修改设施信息
     *
     * @param fasFacilities 设施信息
     * @return 结果
     */
    public int updateFasFacilities(FasFacilities fasFacilities);

    /**
     * 批量删除设施信息
     *
     * @param ids 需要删除的设施信息主键集合
     * @return 结果
     */
    public int deleteFasFacilitiesByIds(Long[] ids);

    /**
     * 删除设施信息信息
     *
     * @param id 设施信息主键
     * @return 结果
     */
    public int deleteFasFacilitiesById(Long id);

    List<FasFacilities> findLikeFacility(FasFacilities fasFacilities);

    List<FasFacilities> findAllFacility(FasFacilities fasFacilities);

    /**
     * 设施详细信息
     * @param id
     * @return
     */
    List<FasFacilities> facilityDetails(Integer id);

    List<FasBuilding> miniappFindIpqcBuilding(Long lineId);

    List<FacilityDataItemVo> miniappIpqcLineBuildingFacility(Integer facilityId,Long taskId);

    AjaxResult importFasFacilities(List<FasFacilities> facilitiesList);
}
